package com.gaoyi.crm.db.entity;

import androidx.room.Embedded;
import androidx.room.Ignore;
import androidx.room.Relation;

import java.util.List;

public class PmnWithList extends BaseListEntity {
    @Embedded
    public Pmn pmn;

    @Relation(
            parentColumn = "id",
            entityColumn = "pmnId"
    )
    public List<PmnAttach> pmnAttachs;

    @Relation(
            parentColumn = "id",
            entityColumn = "pmnId"
    )
    public List<PmnItemNo> pmnItemNos;

    @Ignore
    private boolean isCheck;

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

}
